import 'package:flutter/material.dart';
import 'package:flutter_todo_ohos/gen_a/A.dart';
import 'package:get/get.dart';
import 'package:getx_scaffold_ohos/getx_scaffold_ohos.dart';

import 'splash_logic.dart';

class SplashPage extends StatefulWidget {
  const SplashPage({super.key});

  @override
  State<SplashPage> createState() => _SplashPageState();
}

class _SplashPageState extends State<SplashPage> {
  final SplashLogic logic = Get.put(SplashLogic());

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.white,
      body: Column(
        children: [
          Image.asset(
            A.assets_images_ic_launcher,
            width: 200.w,
            height: 200.w,
            fit: BoxFit.fill,
          ).center().marginOnly(top: 150.h),
          Text(
            '蜜蜂TODO',
            style: TextStyle(
              fontSize: 20.sp,
            ),
          ).center()
        ],
      ),
    );
  }

  @override
  void dispose() {
    Get.delete<SplashLogic>();
    super.dispose();
  }
}
